Method for actuating valves for controlling a flow path and machines, especially medical treatment machines

ABSTRACT

A method for the control of valves for flow path control, in particular in a medical treatment machine, having a plurality of processes for the manufacture of flow paths by control of a group of valves, with each process claiming a group of valves suitable for its carrying out for itself so that other processes cannot change the switching state of these valves and with each process itself making a decision on the release of the valves claimed by it. In addition, a method is provided for monitoring the then current and/or scheduled state of a plurality of valves in the flow path control, determining the connections resulting from the switching state of the valves, and comparing the resulting connections with a predetermined number of non-permitted connections.

This is a national stage of PCT/EP09/001,381 filed Feb. 26, 2009 and published in German, which has a priority of German no. 10 2008 011 827.3 filed Feb. 29, 2008, hereby incorporated by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a method for the control of valves for flow path control, in particular in a medical treatment machine. The present invention furthermore relates to a method for the monitoring of the then current and/or scheduled state of a plurality of valves in flow path control, in particular in a medical treatment machine, as well as to a machine, in particular a medical treatment machine, having a control for the carrying out of the corresponding methods.

The present invention in particular relates to methods for the operation of a machine in which a cassette system is used for the transport of liquids, in particular medical liquids. The present invention is used particularly advantageously in treatment machines in the field of dialysis, in particular in the field of peritoneal dialysis. Cassette systems are usually used in such treatment machines for the transport of the treatment liquids or for the carrying out of the treatment.

2. Description of the Related Art

The present invention in particular relates to peritoneal dialysis machines such as are presented in US 2007/0112297 A1 and US 2006/0195064 A1 as well as to methods for the operation of such peritoneal dialysis machines. The full extent of the content of 2007/0112297 A1 and US 2006/0195064 A1 is hereby an integral part of the disclosure of the present application.

The disposable cassettes used in such cassette systems have fluid paths and valve points via which the flow paths required for the respective treatment step can be established in the cassette. The fluid paths of the cassettes are usually formed by liquid conducting passages which have at least one flexible wall in the region of the valve points. The flexible wall can then be pressed into the liquid conducting passage by a valve actuator and so block said passage. Pneumatically actuable actuators can e.g. be used as the actuators which expand on the application of pressure to the actuator and so serve as valve tappets. Hydraulic or electric motor valve actuators can equally be used. The liquid conducting passages with the valve points are usually arranged at the disposable cassette; the valve actuators at the treatment machine. The cassettes are then inserted into the treatment machine and coupled to it so that the valve actuators at the treatment machine come into engagement with the valve points at the cassette and determine the switching state of the valves of the cassette.

Programs are usually stored in the machine control for the control of the valves and the group of valves required for the establishing of a required flow path (e.g. from a pump chamber to the patient) are controlled via said programs. A flow path is in this context understood as the connection between two sources and/or sinks which are connected by valves, e.g. the connection between a bag and a pump which is established by opening the valves disposed between the bag and the pump as well as closing valves to other component conducting connection lines. A plurality of valves are usually provided, e.g. nine or sixteen valves in known systems, via whose different control a plurality of different flow paths between the patient, the pump chambers of the cassette and different bags with liquid or for drainage can be established.

In known methods, a flow path which is e.g. required for a certain pump cycle is fixedly predetermined by the method used. In this connection, the machine knows the corresponding flow path for the method used since it is fixedly stored in the application. If the method now requires a connection from a point A to a point D, which could theoretically take place both via B and via C, this connection is previously stored in the application—e.g. via B. The application therefore does not have a free choice, but rather has a fixedly stored connection assigned to it in the present case.

A monitoring of the permitted flow path A-B-D is not necessary in this respect since only permitted and previously fixed connections are stored in the protection system. The flow paths required for a complete application are thus stored on the programming of the methods. If now a new method should be integrated into the application of the machine, the flow paths required for this must be checked as to whether they are stored in the protection system or whether they have to be stored as new, which has to result in a total check since the change between individual flow paths to be switched possibly also has to be checked for meaningfulness. A further disadvantage of the previously known systems is furthermore the change between two preset pump cycles since all the valves first have to be closed for this purpose for safety reasons. This results in an increase in wear in the valve components. The known systems are therefore inflexible and make the implementation of new methods difficult.

SUMMARY OF THE INVENTION

It is the object of the present invention to provide methods for the control or monitoring of valves for flow path control in which the implementation of new methods is made more flexible, with the necessary safety aspects nevertheless being taken into account. It is furthermore the object of the present invention to provide machines, in particular medical treatment machines, having corresponding valve controls or valve actuator controls.

This object is solved by a method for the control of valves for flow path control, in particular in a medical treatment machine, having a plurality of processes for the establishing of flow paths by controlling a group of valves, wherein each process claims a group fo valves suitable for its carrying out for itself so that other processes cannot change the switching state of these valves; and wherein each process itself makes a decision on the release of the vlaves claimed by it. This object is also solved by a method for the monitoring of the then current and/or scheduled state of a plurality of valves in the flow path control, in particular in a medical treatment machine, having the steps of determining the then current and/or scheduled switching state of the valves; determing the connections resulting from the connections with a predetermined number of non permitted connections.

The object is further solved by a machine, in particular a medical treatement machine, having a pluarlity of valve actuators for the control of valves for the flow path control, in particular in a cassette system, with a valve actuator control for the carrying out of a plurality of processes for establishing flow paths by controlling a group of vavle actuators, with the valve actuator control being configued such that each process claims a group of valve acuators suitable for its carrying out for itself so that other processes cannot change the switching stat of thse valve actuators and each process itself makes a decision on the releas of the valve acutators claimed by it. Still further, the object is solved by a machine, in particular a mediacl treatment machine, having a plurality of valve actuators for the control of valves for the flow path control, in particular in a cassette system, having a valve acutation control and having a monitoring unit for the monitoring of the then current and/or scheduled state of a plurality of valves, with the monitoring unit determining the then current and/or scheduled switching state of the valves and the connections resulting from the switching state and comparing the resulting connections with a predetermined number of non permitted connections.

The present invention includes a method for the control of valves for flow path control, in particular in a medical treatment machine, having a plurality of processes for the manufacture of flow paths by control of a group of valves, with each process claiming a group of valves suitable for its carrying out for itself so that other processes cannot change the switching state of these valves and with each process itself making a decision on the release of the valves claimed by it. It is possible, on the one hand, by this method to allocate valves or groups of valves to individual processes in a flexible manner.

In this context, a process represents a method constituent within the valve control of the machine which provides a certain flow path. For this purpose, a process requires a group of valves whose switching state it sets thus that the valves establish the flow path. This group of valves usually only represents some of all the valves so that a process usually does not claim all valves for its carrying out. In this connection, there can be a plurality of different possibilities of realizing a flow path for the same flow path, e.g. from a pump chamber to a bag, i.e. a process can be realized by different groups of valves.

It is now possible by the method in accordance with the invention that individual processes flexibly claim different groups of valves without impairing the safety of the system. While one process claims the group of valves required for the establishing of the flow path, other processes cannot change the switching state of these valves so that only the process providing a flow path can also make a decision on its cancellation.

In this context, each process makes a decision on the release of the valves claimed by it in accordance with internal and/or external process criteria. Internal process criteria can e.g. be pump positions, steps already carried out or the completion of the process. External circumstances can e.g. be a higher prioritization of another process. It is, however, decisive in the present method that only the process respectively claiming the valves can also release them again so that a coordinated and reliable interplay of a plurality of processes is ensured.

In this connection, each process advantageously releases the claimed group of valves after its ending. These valves can hereby in turn again be claimed by other processes and used for carrying them out.

Advantageously, a process can in this connection claim different groups of valves depending on the availability of the valves. This enables a flexible valve management in which the available resources are ideally utilized. In this connection, in a first method variant, a valve is considered as available for a process if it is not claimed by any other process. A valve can thus, however, always only be claimed by a single process even if two processes actually require the same switching state for a valve and are therefore basically compatible.

In a second method variant, a valve is therefore considered as available for a second process when it is not claimed by any other process or when it is admittedly already claimed by a first process, but has the switching state required by the second process. The switching state of such a valve already claimed by a first process can no longer be changed by the second process in this connection. If this is, however, not necessary for the establishing of the flow path by the second process, the second process can then use this valve. For this purpose, the second process advantageously also claims the valve so that its switching state can also no longer be changed by the first process. Both processes can thus utilize the same valve, with an unintentional cancellation of the flow path of the one process by the other process being prevented by the claiming of the valve.

In this connection, the individual processes advantageously represent method constituents within the valve control of the machine which establish a specific flow path and maintain it up to their end. The changing of a flow path thus always takes place by the carrying out of a new process.

In this connection, in accordance with the invention, each process advantageously polls the availability of a group of valves suitable for its carrying out before its carrying out. A process which wants to establish a certain flow path thus initially polls whether a group of valves suitable for this purpose is already available.

A process is advantageously carried out in this connection when a suitable group of valves is available, with the process claiming this group of valves for itself. If therefore such a group of valves is available, the process can be carried out independently of further processes possibly running in parallel. It is sufficient for this purpose for a combination of valves to be available from a plurality of possible combinations of valves which are suitable for the establishing of the desired flow path. If, however, the desired flow path cannot be established with the available valves, the process can thus initially not start.

Advantageously, the polling of a non-available valve by a second process results in a request to the first process claiming this valve to release this valve, with only the first process making a decision on this request. This is in particular the case if no suitable group of valves is available for the carrying out of the second process. The second process then requests the first process to release the valve it needs. The first process now makes an independent decision on this request, with internal and external process criteria being able to be taken into account. Only when the first process has released the required valve or the required group of valves can the second process change their switching state and establish the desired fluid path.

In this connection, the polling process advantageously claims all of the polled and available valves for itself. It is hereby ensured in a plurality of processes that a process can initially claim all the available valves for itself and thus only has to wait for the valves which have to be released by other processes so that it can change their switching state.

Advantageously, the polling process furthermore receives a right to claim all polled but not available valves on the polling so that it can claim these valves for itself when they have been released. A reliable transition from one process to the next is hereby possible even with a plurality of processes. In particular different priority rights can be awarded for different processes in this connection.

Advantageously, the method in accordance with the invention includes a central valve allocation process in which all the other processes claim, release and/or request the required valves. This central valve allocation process thus takes over the distribution management for the individual valves and valve groups, with the release of individual valves, however, only being able to take place by the process which is then currently utilizing them.

The method in accordance with the invention advantageously includes the following steps: claiming a first group of valves for the carrying out of a first process in which a first flow path is established by control of the associated first group of valves; polling the availability of a second group of valves for the carrying out of a second process in which a second flow path should be established by control of the associated second group of valves; and carrying out the second process when all required valves are available, with the polling of valves which are not available by the second process resulting in a request to the first process to release these valves, with only the first process making a decision on this request.

The present invention thus permits a flexible flow path planning. A flow path in this connection is understood as the connection between two sources and/or sinks which are connected by valves, e.g. the connection between a bag and a pump. If such a flow path is made available by a first process, the valves controlled for this purpose are claimed by this first process and their switching state of can no longer be changed by further processes to establish other flow paths. If now a specific flow path is requested by a second process, e.g. by a second pump cycle of the process, all the valves required for the flow path are then polled. The available valves can be claimed. The valves which are already assigned to the first process, e.g. a first pump cycle, and whose switching state would have to be changed, are requested in this first process. The first process has sole power of decision on when and if it releases the valves to the second process. As soon as the corresponding valves have been released by the first process, the requesting second process can use the valves and form its flow path.

To prevent an unwanted free flow on a change from a first process to a second process, the required valves which are already in the correct state for the corresponding process are left in their state. It applies to the valves whose state has to be changed that the valves to be closed are closed in a first step. In a second step, the valves required by the second process in an open state are opened.

It is possible by this method in accordance with the invention for the control of the valves that a plurality of processes access the individual valves in a flexible manner, with a reliable operation nevertheless being ensured by the release rules in accordance with the invention. This flexible and open architecture of the processes in accordance with the invention makes it possible to implement new processes particularly simply. In particular the complete system architecture no longer has to be revised for this purpose. It is rather the case that new processes can be added to the existing processes without problem.

There are thus additionally substantially fewer valve switching processes and thus a lower wear of the valve components by this type of the flow path formation in the flexible design of the implementation of new processes which can run on the treatment machine, e.g. a cycler. Such a cycler represents a treatment machine for dialysis, in particular for peritoneal dialysis, which permits an automated exchange of the dialysis liquids. It is in particular possible to dispense with initially closing all valves on a change between pump cycles, as is still necessary in the prior art for safety reasons.

The present invention in this connection furthermore includes a machine, in particular a medical treatment machine, having a plurality of valve actuators for the control of valves for the flow path control, in particular in a cassette system, with a valve actuator control for the carrying out of a plurality of processes for establishing flow paths by controlling a group of valve actuators, with the valve actuator control being configured such that each process claims a group of valve actuators suitable for its carrying out for itself so that other processes cannot change the switching state of these valve actuators and each process itself makes a decision on the release of the valve actuators claimed by it. Valves which are in particular arranged in a cassette system which is inserted into the machine are controlled via the valve actuators to make corresponding flow paths available in the cassette. The same advantages result from such a machine such as were already described with respect to the method. It is in particular hereby possible to associate different groups of valve actuators to the individual processes in a flexible manner without impairing the safety of the system. The valve actuator control in accordance with the invention is in particular programmed such that the processes in accordance with the invention can be carried out in accordance with the invention, with the method in accordance with the invention advantageously running automatically on the machine in accordance with the invention.

In this process, in accordance with the invention, each process advantageously makes a decision on the release of the valve actuators claimed by it in dependence on internal or external process criteria. As already described with respect to the method, the safety of operation of the machine is hereby ensured.

In this connection, each process advantageously releases the claimed group of valve actuators after its end. The latter can thereby again have their switching states changed by other processes.

In this connection, a process can advantageously claim different groups of valve actuators in dependence on the availability of the valve actuators. A flexible association of different groups of valve actuators to a process is hereby possible so that different groups of valve actuators can be controlled by the same process for the establishing of a flow path.

Each process advantageously polls the availability of a group of valve actuators suitable for its carrying out before its carrying out. A process is carried out in this connection when a suitable group of valve actuators is available, with the process claiming this group of valve actuators for itself. It is hereby ensured that other processes can no longer change the switching state of this group of valve actuators so that only the process itself can make a decision whether the flow path provided by it is maintained or cancelled.

Advantageously, the polling of a non-available valve actuator by a second process results in a request to the first process claiming this valve actuator to release this valve actuator, with only the first process making a decision on this request. A poll in particular results in a request to release a valve actuator when no group of valve actuators is available with which the second process could establish the intended flow path. In this case, the flow path provided by the first process first has to be cancelled to be able to form the flow path to be provided by the second process.

In this connection, the polling process advantageously claims all of the polled and available valve actuators for itself. The available valve actuators, that is all the valve actuators not claimed by another process and, advantageously, all the valve actuators claimed by other processes, but already being in the desired switching state, can hereby be claimed by the polling process for itself so that the switching process of these valve actuators can no longer be changed by other processes.

Further advantageously, the polling process furthermore receives a right to use with respect to all polled but not available valve actuators on the polling so that it can claim these valve actuators for itself when they have been released. If therefore the switching state of a valve actuator already claimed by another process has to be changed, the polling process does not claim this valve for itself, but only receives a claim right to it which it can exercise when this valve actuator has been released by the first process. A synchronization of a plurality of different processes is hereby possible.

The valve actuator control advantageously includes a central valve association process in which all the other processes can claim, release and/or poll the required valve actuators.

The valve actuator control in accordance with the invention is advantageously programmed such that the following steps can be carried out: claiming a first group of valve actuators for the carrying out of a first process in which a first flow path is established by control of the associated first group of valves; polling the availability of a second group of valve actuators for the carrying out of a second process in which a second flow path should be established by control of the associated second group of valves; and carrying out the second process when all required valve actuators are available, with the polling of valve actuators which are not available by the second process resulting in a request to the first process to release these valve actuators, with only the first process making a decision on this request.

The machine in accordance with the invention advantageously has a coupling surface for the coupling of a cassette, with the cassette including passages having valves and conducting liquids and with the valve actuators on the machine side for the establishing of different flow paths in the cassette determining the switching state of the valves on the cassette side. In this connection, the valve actuators are advantageously arranged on the coupling surface of the machine. The cassette usually represents a disposable part which is inserted into the machine.

In accordance with the invention, a method thus results as well as a corresponding machine on which the flow path formation can be implemented with much greater flexibility.

The safety system should also be adapted to the flexible flow path planning in accordance with the invention, in particular in order not to lose the flexibility gained in the flow path planning again.

The present invention therefore furthermore includes a method for the monitoring of the then current and/or scheduled state of a plurality of valves in the flow path control, in particular in a medical treatment machine, having the steps: determining the then current and/or scheduled switching state of the valves; determining the connections resulting from the switching state of the valves; and comparing the resulting connections with a predetermined number of non-permitted connections.

All the permitted flow paths are therefore no longer stored, which would then have to be revised on a change or a new introduction of a method, but rather all the prohibited paths are determined and stored once for the total arrangement of the valves, pumps and connections, that is for all the valves, sinks and/or sources of the system. Only the connections resulting from the switching state of the valves thus still have to be determined and compared with this number of non-permitted connections for the monitoring of the then current and/or scheduled state of the valves or of the system.

Only connections between the inlets or outlets of the system have to be taken into account as non-permitted connections, e.g. a connection between the terminal leading to the patient and the terminal leading to the drainage bag. The internal switching state of the valves, which corresponds to one of such connections, in contrast no longer has to be classified as permitted or non permitted since the method determines which connections are present between the inlets and outlets of the system by the switching state of the valves (and the internal connections connected thereto). Only these connections between the inlets and outlets of the system then have to be compared with the non permitted connections.

The determination of the connections resulting from a switching state advantageously always takes place when the switching state of a valve changes or should change. The valve states are therefore monitored. If the valve state changes or if a process wants to change a valve status, the connections or flow paths resulting from the changed switching state of the valve are determined and a check is made whether these connections or flow paths are non permitted connections or flow paths.

In this connection, all the open valves are advantageously virtually flooded, starting from one or more starting points, for the determination of the connections resulting from a switching state. In this connection, a check is made, starting from one starting point, as to which connections result over the open valves of the system starting from this starting point. In this connection, the valves and the connections resulting through the passages conducting liquid between the valves are stored, e.g. in the form of a network, in the treatment machine.

An open, not yet flooded valve is advantageously respectively selected as the starting point in this connection. Starting from this open, not yet flooded valve, all the open valves connected to this valve are then virtually flooded from which in turn all the adjacent open valves are flooded until no further adjacent open valves are found which have still not been flooded. At the end of this process, the connection between a plurality of sources and/or sinks established by the respectively flooded connections then results. If the system still has further open, not yet flooded valves, the process is continued with one of these valves as the starting point to determine all the connections established by the system.

Advantageously, in this connection, in accordance with the invention, all the determined connections are entered in a connection matrix. It can in particular be entered into such a matrix for all combinations of valves of the total system whether a connection is present between these two valves or not by the then current switching state of the valves. In this connection, an iterative procedure can in turn be followed, as described above, in that all the open valves are virtually flooded sequentially, starting from one or more starting points, and the connections resulting therefore are entered into the connection matrix.

In this way, only the resulting connection matrix has to be compared with a control matrix in which all the non permitted connections have been entered. If the resulting connection matrix has no entry which would correspond to a non permitted connection, the connections provided by the then current and/or scheduled state of the valves are permitted.

If, in contrast, a non permitted connection is recognized for a switching state of the valves, safety measures are initiated. If the method recognizes a non permitted connection for a current switching state, the system advantageously switches into a safe state. On a recognition of a non permitted connection which would result from a scheduled switching state of the valves, this switching state is not brought about.

In accordance with the invention, an extremely safe method hereby results for the monitoring of the valves by which it is ensured that no non permitted flow paths are established. Since the non permitted flow paths only have to be preset once, the safety system does not have to be adapted to newly implemented processes and thus has the high flexibility of the system in accordance with the invention.

In this connection, the present invention furthermore includes a machine, in particular a medical treatment machine, having a plurality of valve actuators for the control of valves for the flow path control, in particular in a cassette system, having a valve actuator control and having a monitoring unit for the monitoring of the then current and/or scheduled state of a plurality of valves, with the monitoring unit determining the then current and/or scheduled switching state of the valves and the connections resulting from the switching state and comparing the resulting connections with a predetermined number of non permitted connections. The machine in accordance with the invention is in particular equipped with a control which is programmed so that the method in accordance with the invention for the monitoring of the valve position is carried out on it, in particular automatically. In this connection, advantageously, the switching state of a valve is determined by the switching state of the associated valve actuator of the machine so that the monitoring of the switching state of the valve actuators on the machine side can be used for the monitoring of the switching state of the valves. The valves themselves are, in contrast, usually components of a cassette which is inserted into the machine as a disposable part.

A flexible possibility of reliably monitoring the switching state of the valve actuators or valves and thus the permissibility of the then current and/or scheduled flow paths thus results with the machine in accordance with the invention.

The determination of the connections resulting from a switching state advantageously always takes place when the switching state of a valve changes or should change. The machine in accordance with the invention thus always checks the permissibility of the connections when a valve actuator is controlled or should be controlled.

In this connection, all the open valves are advantageously virtually flooded, starting from one or more starting points, for the determination of the connections resulting from a switching state. The machine in accordance with the invention advantageously includes a memory in which a representation of the valves and of the flow paths is stored. The machine furthermore advantageously includes a computing unit which carries out a virtual flooding on the basis of these data.

An open, not yet flooded valve is advantageously respectively selected as the starting point in this connection. Further advantageously, all the connections determined are entered into a connection matrix in this connection. For this purpose, the machine in accordance with the invention advantageously has a memory in which the determined connections can be stored.

Further advantageously, in this connection, the resulting connection matrix is compared with a control matrix in which all non permitted connections have been entered. The machine in accordance with the invention also advantageously has a memory for this purpose in which the control matrix is stored. The monitoring unit then advantageously compares the resulting connection matrix with the stored control matrix.

In this connection, the machine advantageously switches into a safe state on recognition of a non permitted connection with a then current switching state of the valves and/or does not initiate this switching state on recognition of a non permitted connection with a scheduled switching state. The safety of the machine is hereby guaranteed.

The machine in accordance with the invention advantageously has a coupling surface for the coupling of a cassette, with the cassette including passages having valves and conducting liquids and with the valve actuators on the machine side for the establishing of different flow paths in the cassette determining the switching state of the valves on the cassette side.

In this connection, both the method in accordance with the invention for the control of the valves and the method in accordance with the invention for the monitoring of the state of the valves are of great advantage independently of one another. It is, however, obvious to the skilled person that particularly the combination of the extremely flexible control method with the equally flexible monitoring method results in special advantages, in particular on the implementation of new processes.

The present invention furthermore includes a machine, in particular a medical treatment machine, having a plurality of valve actuators for the control of valves for flow path control, in particular in a cassette system, with the machine having a control for the carrying out of one of the methods described above. The control in accordance with the invention is in particular programmed such that one or more of the methods in accordance with the invention can be carried out. The same advantages hereby evidently result such as were already described above with respect to the method.

Furthermore, the present invention includes a computer program product, in particular a memory medium with a computer program, for transferring to a machine, in particular to a medical treatment machine, with commands for the carrying out of a method such as are described above. An existing machine, in particular an existing medical treatment machine, on which methods in accordance with the prior art have previously been used, can be put in a position by such an update to carry out the methods in accordance with the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will now be described in more detail with reference to embodiments and drawings. There are shown:

FIG. 1: a valve arrangement for whose control and/or monitoring embodiments of the methods in accordance with the invention are used as well as a legend for the symbols used in the drawings following it;

FIG. 2 a: a first process which is used in an embodiment of the method in accordance with the invention for the control of valves;

FIG. 2 b: a second process which is used in an embodiment of the method in accordance with the invention for the control of valves;

FIG. 3: a diagrammatic representation of the embodiment of the method in accordance with the invention for the control of the valves;

FIG. 4: a first state of a plurality of valves which is monitored by an embodiment of the method in accordance with the invention for the monitoring;

FIG. 5: a second state of a plurality of valves which should be monitored by the embodiment of the method in accordance with the invention for the monitoring;

FIGS. 6 a-6 d: individual steps of the embodiment of the method in accordance with the invention for the monitoring of a state;

FIG. 7: a connection matrix which is used in the embodiment of the method in accordance with the invention for the monitoring and which corresponds to the state of a plurality of valves shown in FIG. 4;

FIG. 8: the starting point for a connection matrix as is prepared by the embodiment of the method in accordance with the invention for the monitoring for the state of a plurality of valves shown in FIG. 5; and

FIGS. 9 a-9 d: individual steps in the preparation of a connection matrix by the embodiment of the method in accordance with the invention for the monitoring of a state which correspond to the steps shown in FIGS. 6 a to 6 d.

DETAILED DESCRIPTION OF THE PREFFERED EMBOIDMENTS

Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications withing the spirit and scope of the invention will become apparent to those skille din the art from this detailed description.

In FIG. 1, a valve arrangement is shown for whose control and/or monitoring the methods in accordance with the invention can be used. The fluid paths and valves shown are integrated in a disposable cassette which is inserted into a treatment machine in accordance with the invention and is there coupled to a coupling surface. The coupling surface of the treatment machine has valve actuators which cooperate with valve points at the cassette and hereby form valves.

The fluid paths in the cassette are formed by liquid conducting regions which have flexible walls at least in the region of the valve points. The flexible regions can be pressed by the valve actuators into the regions conducting liquid to close said regions. The cassette in particular consists of a hard part with liquid conducting passages which are covered by a flexible foil. The disposable cassette furthermore has, beside the fluid paths and the valves, pump chambers P_(A) and P_(B) which are likewise formed as liquid conducting regions covered by a flexible membrane, with the membrane being able to be pressed into or out of the cassette by the treatment machine so that a pump function results.

In the valve system shown in FIG. 1, a plurality of inlets and outlets are provided which can be connected to one another and/or the pump chambers via the valves. Connections for liquid bags and for the patient are in particular provided. Each of the connections for external lines has its own valve. Furthermore, respective valves are provided at the inlets and outlets of the two pump chambers P_(A) and P_(B).

The pump chambers are thus in communication with the patient connection via valves V1, V3 and V6. Furthermore, the pump chambers are in communication with the liquid bags via valves V2, V4 and V7 to V9. The patient connection is likewise directly in communication with the liquid bags via the valve V5. In this connection, in the arrangement shown in FIG. 1, two connections are provided for liquid bags for treatment liquids as well as one connection for a drainage bag.

The two pump chambers are arranged parallel to one another between a common line which leads to the liquid bags and a line which leads to the patient. Furthermore, a line having the valve V5 and parallel to the pump chamber is provided via which a direct connection can be established between the patient and the liquid bags.

Embodiments of the methods in accordance with the invention for the control of the valves V1 to V9 as well as for their monitoring will now be described in more detail with reference to FIGS. 1 to 9. For this purpose, the symbols shown in FIG. 1 will be used for the different switching states of the valves. A valve filled in in white stands for a non-participating valve whose switching state with respect to the corresponding method is not defined. A valve filled in in black stands for a closed valve; a valve filled with diagonal hatching stands for an open valve. A valve filled with vertical hatching, in contrast, stands for an open valve which has been virtually flooded for the method.

In this connection, a starting position of a method for controlling valves for flow path control of a medical treatment machine is shown in FIG. 1. All the valves are initially non participating, that is they can be mechanically open or closed. Since a certain starting status is required for the control of the flow paths, the valves are initially closed in the embodiment.

The embodiment of the method in accordance with the invention includes a plurality of processes for the establishing of flow paths by the control of a group of valves, with each process claiming the respectively required group of valves for itself during its carrying out so that other processes cannot control these valves. In FIG. 2 a, a first process B is shown which establishes the flow path from the patient to the pump P_(B). The valves V1, V4 and V5 are closed for this purpose, while the valves V3 and V6 are open. All other valves remain non participating. The process shown in FIG. 2 a thus claims the valves V1, V3 and V4 to V6 for itself so that other processes cannot change the switching state of these valves.

In FIG. 2 b, a second process A is now shown by which a flow path from the patient to the pump chamber P_(A) should be established. For this purpose, the valves V2, V3 and V5 are closed and the valves V1 and V6 are open, while the other valves remain non participating. The second process A thus requires the valves V1 to V3 as well as V5 and V6. With the exception of the valve V2, however, all these valves are still reserved by the first process B so that process A cannot control them. The valve V3 reserved by the first process is in particular in its open position, while it would have to be closed for the second process. The query made by the second process whether the valves required for the establishing of the desired flow path are available thus has the result that the required valves are partly reserved by another process since valve 3 is claimed by the first process and its switching position would have to be changed.

The second process thus initially only reserves the already available valves which are needed to provide the fluid path, i.e. the still unclaimed valve V2 and the valves V1, V5 and V6 which are claimed by the first process and which are already in the switching state required by the second process, and makes a request to the first process so that it releases the valves still needed. The first process then decides whether and when it will release the required valves, i.e. the valve V3 which would have to be switched over. The second process must wait so long. The decision of the first process on the release of the requested valves can be influenced by its own process criteria such as the pump position or by external circumstances such as a higher prioritization of the other process. It is, however, decisive in this connection that only the first process can release the valves used by it. A cooperation of the process is hereby ensured which is as safe as it is coordinated. In accordance with the invention, accordingly only the process which has claimed a specific valve at the then current time can also release it again.

The procedure of the routine of the method in accordance with the invention for the control of the valves will be presented in more detail again with reference to the process diagram shown in FIG. 3. The process 1 has established a certain flow path and claims a first group of valves for this purpose. The second process 2 now first polls the availability of a second group of valves by whose control a second flow path should be established. This polling of the available valves simultaneously represents a request to the central valve control to associate these valves with the second process. In this connection, the second process can, however, only claim those valves for itself by its poll which are available. The second process can only obtain a claim right from the valve control for the polled valves which are not available so that it can claim these valves for itself when they are released. It can hereby be prevented that a third process claims the valves required by the second process, but not yet released, for itself when they are released.

The second process now signals to the first process via the valve control with respect to the polled but not yet available valves and thus requests the first process to release the required valves. The process 1 can here detect, e.g. with the help of a status query (polling), that the valves are needed and the flow path formed by process 1 should be cancelled. The first process can now make a free decision on how to proceed. In particular only the first process makes a decision on the request whether the valves requested by the second process and claimed by the first valves will be released or not. If the first process releases the valves, it reports this to the central valve control. All the valves required for the second process are hereby available so that it can be carried out. The second process now for its part claims the corresponding group of valves to provide the desired flow path. Accordingly, now only the second process can also make a decision on a further query of another process on the extent to which the valves claimed by it will be released again.

An extremely flexible control of the valves by which all the valves of the system can be used to the optimum thus results from the method in accordance with the invention for the control of the valves for the fluid path control. The valves in this connection represent a resource for the flow paths to be formed since a flow path is described by an arrangement of open and closed valves. A flow path can therefore only be carried out when all the resources are available, that is when all the valves participating in the flow path are available for the corresponding process.

The valve control in accordance with the invention permits the effective scheduling of the available resources in that it provides individual functionalities to the individual processes. A process for the provision of a flow path can request resources, that is claim available valves for itself, whereby they are no longer available to other processes, or release valves claimed for themselves again, whereby they are again available to other processes. Furthermore, individual processes can query the cancellation of another flow path (signaling) in order thus to claim required valves for itself. Processes can equally poll whether the flow path established by it should be cancelled (flow path status), e.g. because other processes have a higher priority. The decision on the cancellation of the flow path or on the release of the valves participating therein, however, is always made by the process which is utilizing the resources to be released.

A possibility which is simple to implement hereby results of synchronizing a plurality of processes with one another, e.g. to control a plurality of pumps, without impairing the safety of the total system.

The logic of the safety system of the treatment machine in accordance with the invention is also inverted for the described flexible flow path scheduling. In this connection, all the allowed flow paths are no longer stored which would then have to be revised on a change or a new introduction of a process, but rather all the prohibited paths are determined and stored at one time for the total arrangement of the valves, pumps and connections.

The present invention has a method for the monitoring of the state of the valves in the flow path control for this purpose. All the valve states are monitored for this purpose. If a valve status changes or if a process plans a change in valve status, all the connections are determined which result from the then current or scheduled switching state of the valves. The connections established in this context are then compared with the predetermined number of non permitted connections to recognize non permitted connections and thus non permitted switching states.

To determine the connections which result from a switching state of the valves, all the open valves are virtually flooded, starting from one or more positions, and the result of the flooding is entered into a connection matrix. A check can now be made directly from the connection matrix produced in this manner whether a prohibited path stored with the protective system is used or should be used.

In this connection, a first switching state of the valves is shown in FIG. 4 in which the valves V3, V6 and V9 are open and the remaining valves are closed. The patient is hereby connected to the pump chamber P_(B). This state corresponds to the connection matrix shown in FIG. 7 in which a connection is only present between the valve V3 and the valve V6. The likewise open valve V9 is not connected to any further open valves so that this open valve is no longer considered in the connection matrix.

If now a change should be made from the switching state shown in FIG. 4 to the switching state shown in FIG. 5 in that the valve V4 is opened, the method in accordance with the invention for the monitoring of the scheduled state of the valves checks whether a non permitted connection hereby results.

In this connection, a still empty connection matrix is first assumed such as is shown in FIG. 8. By a virtual flooding of all open valves, all the connections which result from the state of the valves shown in FIG. 5 are now entered step by step. Connections between two valves Vx and Vy are marked in the connection matrix by an entry in the field of the matrix associated with the combination of the valves Vx and Vy. For the sake of clarity, connections are only shown in the bottom left half of the matrix in the connection matrices shown in FIGS. 7 to 9. The fields in the top right half are equivalent thereto.

The method for the determination of the connections arising from a switching state of the valves by means of a virtual flooding will now be described with reference to FIGS. 6 a to 6 d as well as to the associated resulting connection matrices 9 a to 9 d.

For this purpose, first a still not flooded, open valve is selected and virtually flooded in the state of the valves shown in FIG. 5. In the example shown, as illustrated in FIG. 6 a, the valve V3 is first flooded. The corresponding selection is shown in FIG. 9 a by the circling of the field in the connection matrix associated with the valve V3 itself. Starting from the valve V3 and as shown in FIGS. 6 b and 6 c, all the open valves adjacent to the valve selected as the starting point are flooded. The valve V4 is therefore flooded in FIG. 6 b and valve V6 in FIG. 6 c.

The connections resulting from this flooding are stored in the connection matrix. As shown in FIG. 9 b, the connection established by flooding the valve V4 between the valves V3 and V4 is thus first stored in the connection matrix by a marking of the corresponding field. A connection is now first produced by the flooding of the valve V6 likewise adjacent to the valve V3 shown in FIG. 6 c between the valves V3 and V6 which is first entered in the first connection matrix shown in FIG. 9 c. The system now checks whether further connections between valves are produced by this new connection. In the embodiment, a connection is produced in this context by the connection of the valve V3 to the valve V6, on the one hand, and to the valve V4, on the other hand, between the valve V6 and the valve V4, said connection now being entered in a second step, as shown in second in FIG. 9 c, into the connection matrix.

The method now continues to flood further open valves adjacent to the already flooded valves. In this connection, no further open unflooded valve is adjacent to the valve V6 so that the method ceases here. The open valve V9 still unflooded in FIG. 6 c, in contrast, is adjacent to the flooded valve V4 and is now likewise flooded in the next step which is shown in FIG. 6 d. A connection between the valve V4 and the valve V9 hereby first results which is now entered into the connection matrix in a first step. This is illustrated in the first connection matrix shown in FIG. 9 d. However, due to the already present connection between the valve V4 and V3, the new connection between the valve V9 and V3 is now also produced which is now entered into the connection matrix in a second step. Furthermore, due to the already present connection between the valve V6 and the valve V3 or the valve V4, a new connection is produced between the valve V9 and the valve V6 which is now likewise entered into the connection matrix in the last step.

After all the open valves connected to the valve selected as the starting point have been flooded and all the connections generated thereby have been entered into the connection matrix, the system checks whether further open valves which are still unflooded are present. If the system finds such a valve, it is selected as the starting point for a further virtual flooding which runs according to the same pattern. The system repeats this procedure for so long until all the open valves have been flooded.

All the connections which are produced by the examined state of the valves have now been entered in the connection matrix resulting from this virtual flooding.

The connection matrix is now compared with a control matrix in which all the non permitted connections have been entered. Such a control matrix e.g. includes the non permitted connection between the valves V9 and V6 by which a connection would be established between the patient and the drainage. The method in accordance with the invention thus recognizes, with reference to the connection matrix which is shown at the far right in FIG. 9 d and which is determined for the state shown in FIG. 5, that a non permitted connections would be established by this state. Accordingly, the safety system in accordance with the invention prevents a switch being made into this state. If, in contrast, a then current switching state is checked by the safety system and it is found that a non permitted connection is present, the system automatically switches into a safe state.

In this connection, only non permitted connections have to be given between the terminals, i.e. between the valves V6 to V9. How these connections are realized is, in contrast, not relevant to the evaluation. All the permitted switching states of all valves thus no longer have to be stored in the safety system, but rather only the non permitted connections between terminals, whereas the system independently checks whether a specific switching state results in such a non permitted connection. It would be conceivable to store the permitted connections between the terminals in the safety system alternatively to the non permitted connections. All the permitted switching states would then also not have to be stored in the system. Since, however, considerably more permitted connections than non permitted connections are present, the storing of the non permitted connections is more effective.

The present invention furthermore includes, in addition to the shown embodiments of the methods, a treatment machine, in particular for peritoneal dialysis, in whose control the corresponding methods are implemented. The present invention furthermore includes a computer program product, in particular a storage medium, on which corresponding control software is stored which can be transferred to corresponding treatment machines to implement the methods in accordance with the invention there.

The invention being thus described, it will be apparent that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be recognized by one skilled in the art are intended to be included within the scope of the following claims. 

The invention claimed is:
 1. A method for controlling valves for flow path control in a machine having a plurality of processes for establishing flow paths by controlling a plurality of valves, said valves in said plurality of valves, before being claimed by a particular process, being available to, and controllable by, more than one process, said method comprising the steps of flooding open valves from at least one starting point to determine a plurality of connections resulting from a valve switching state and storing said connections in a connection matrix; comparing the connection matrix with a control matrix containing non-permitted connections to avoid switching states that result in use of a non-permitted connection; a first process claiming or taking control of a group of valves from said plurality of valves to establish a flow path for executing the first process before said first process is executed, said machine comparing connections resulting from said flow path with said control matrix to determine whether said resulting connections include any non-permitted connections; in an absence of non-permitted connections, said first process setting a switching state for said claimed group of valves so that other processes cannot change the switching state of said claimed valves while said valves are claimed by said first process, said claimed valves being non-available to other processes while said valves are claimed by said first process; polling of a non-available valve by a second process resulting in a request to the first process claiming said non-available valve for a release of said non-available valve, said non-available valve, if released by said first process, being controllable by said second process; said first process itself making a decision on said request for the release of the non-available valve claimed by said first process; and said machine monitoring the current and scheduled switching states of the valves to determine resulting connections and comparing said resulting connections with said control matrix to avoid a non-permitted connection.
 2. The method in accordance with claim 1, wherein each process makes a decision on the release of the valves claimed by it in dependence on at least one of internal and external process criteria.
 3. The method in accordance with claim 1, wherein each process releases the claimed group of valves after execution is complete.
 4. The method in accordance with claim 1, wherein a process can claim different groups of valves from within said plurality of valves depending on the availability of the valves.
 5. The method in accordance with claim 1, wherein each process polls the availability of a group of valves suitable for executing a process before executing said process.
 6. The method in accordance with claim 5, wherein a process is carried out when a suitable group of valves is available, with the process claiming this group of valves for itself.
 7. The method in accordance with claim 5, wherein the polling process claims or takes control of all polled and available valves for itself on the polling.
 8. The method in accordance with claim 5, wherein the polling process receives a claim right for all polled but non-available valves on the polling so that it can claim these valves for itself when they have been released.
 9. The method in accordance with claim 1, having a central valve association process in which all the other processes are able to claim, release and poll required valves.
 10. The method in accordance with claim 1, wherein the machine is a medical treatment machine.
 11. A method for controlling valves for flexible flow path control in a medical treatment machine having a plurality of processes to establish flow paths by controlling a plurality of valves, said valves in said plurality of valves, before being claimed by a particular process, being available to, and controllable by, more than one process, said method comprising the steps of: flooding open valves from at least one starting point to determine a plurality of connections resulting from a valve switching state and storing said connections in a connection matrix; comparing the connection matrix with a control matrix containing non-permitted connections to avoid switching states that result in use of a non-permitted connection; claiming or taking control of a first group of valves from said plurality of valves for executing a first process in which a first flow path is established by control of said first group of valves; said medical treatment machine comparing connections resulting from said first flow path with said control matrix to determine whether said resulting connections include any non-permitted connections; in an absence of non-permitted connections, polling to determine availability of a second group of valves from said plurality of valves for executing a second process in which a second flow path should be established by control of the second group of valves, wherein at least one valve in said second group of valves may be a valve in said first group of valves; executing the second process when all required valves are available; wherein polling by the second process of non-available valves results in a request to the first process to release said non-available-valves, with only the first process making a decision on said release request, said non-available valve, if released by said first process, being controllable by said second process; and said medical treatment machine monitoring the current and scheduled switching states of the valves to determine resulting connections and comparing said resulting connections with said control matrix to avoid a non-permitted connection.
 12. A machine having a plurality of valve actuators for controlling flow paths by control of valves, with a valve actuator control for executing a plurality of processes for establishing said flow paths by controlling a group of said plurality of valve actuators, said valve actuators in said plurality of valve actuators, before being claimed by a particular process, being available to, and controllable by, more than one process, open valves being flooded from at least one starting point to determine a plurality of connections resulting from a valve switching state and said connections being stored in a connection matrix, the connection matrix being compared with a control matrix containing non-permitted connections to avoid switching states that result in use of a non-permitted connection, the valve actuator control being configured such that a first process polls an availability of a group of valve actuators from said plurality of valve actuators to establish a flow path suitable for said first process to execute a first one of said plurality of processes, said machine comparing connections resulting from said flow path with said control matrix to determine whether said resulting connections include any non-permitted connections and, in an absence of non-permitted connections, said group of valve actuators that are determined to be available being claimed or taken control of by said first process for execution of said first one of said plurality of processes so that other processes cannot change a switching state of said claimed group of valve actuators, said claimed valve actuators being non-available to other processes while said valve actuators are claimed by said first process, polling of a non-available valve actuator by a second process resulting in a request to the first process claiming the non-available valve actuator to release the non-available valve actuator, with only the first process making a decision on this release request, said non-available valve, if released by said first process, being controllable by said second process, and said machine monitoring the current and scheduled switching states of the valves to determine resulting connections and comparing said resulting connections with said control matrix to avoid a non-permitted connection.
 13. The machine in accordance with claim 12, wherein each process makes a decision on release of the valve actuators claimed by it in dependence on at least one of internal and external process criteria.
 14. The machine in accordance with claim 12, wherein each process releases the claimed group of valve actuators after execution is completed.
 15. The machine in accordance with claim 12, wherein a process can claim different groups of valve actuators from within said plurality of valve actuators in dependence on an availability of the valve actuators.
 16. The machine in accordance with claim 12, wherein each process polls for availability of a group of valve actuators suitable for execution of a process before execution thereof.
 17. The machine in accordance with claim 16, wherein a process is executed when a suitable group of valve actuators is available, with the process claiming this group of valve actuators for itself.
 18. The machine in accordance with claim 16, wherein each process polling for valve actuators claims polled and available valve actuators for itself.
 19. The machine in accordance with claim 16, wherein each process polling for valve actuators receives a claiming right for all polled but not available valve actuators on the polling so that the process that is polling can claim these valve actuators for itself when said polled but not available valve actuators have been released.
 20. The machine in accordance with claim 12, wherein the valve actuator control includes a central valve association process in which all the other processes are able to claim, release and poll required valve actuators.
 21. The machine in accordance with claim 12, wherein the machine is a medical treatment machine.
 22. A method for controlling a plurality of valves for flexible flow path control in a machine having a plurality of processes to establish flow paths by controlling a group of valves from said plurality of valves and having a valve actuator control for executing a plurality of processes for establishing said flow paths by controlling a group of valve actuators from a plurality of valve actuators in which the following steps are carried out: flooding open valves from at least one starting point to determine a plurality of connections resulting from a valve switching state and storing said connections in a connection matrix, and comparing the connection matrix with a control matrix containing non-permitted connections to avoid switching states that result in use of a non-permitted connection; claiming or taking control of a first group of valve actuators from said plurality of valve actuators for execution of a first process in which a first flow path is established by control of the first group of valves, said machine comparing connections resulting from said first flow path with said control matrix to determine whether said resulting connections include any non-permitted connections and, in an absence of non-permitted connections, said claimed valve actuators being non-available to other processes while said valve actuators are claimed by said first process; polling an availability of a second group of valve actuators from said plurality of valve actuators for execution of a second process in which a second flow path should be established by control of the second group of valves, wherein at least one valve actuator in said second group of valve actuators may be a valve actuator in said first group of valves; executing the second process when all required valve actuators are available; wherein polling for execution of the second process of non-available valve actuators results in a request to the first process to release said non-available valve actuators, with only the first process making a decision on this release request, said non-available valve actuators, if released by said first process, being controllable by said second process; and monitoring the current and scheduled switching states of the valves to determine resulting connections and comparing said resulting connections with said control matrix to avoid a non-permitted connection.
 23. The machine in accordance with claim 12, having a machine side with a coupling surface for coupling of a cassette, said cassette comprising valves and liquid conducting passages, wherein the valve actuators on the machine side determine a switching state of the valves on the cassette to establish different flow paths.
 24. The machine in accordance with claim 16, having a coupling surface for coupling of a cassette which comprises valves and liquid conducting passages, wherein the valve actuators on the machine determine a switching state of the valves on the cassette to establish different flow paths in the cassette.
 25. A computer program product comprising a non-transitory storage media, having a computer program for transfer to a machine, said program having commands for controlling a plurality of valves to control flow paths in a medical treatment machine that has a plurality of processes for establishment of flow paths by controlling a group of valves from said plurality of valves, said valves in said plurality of valves, before being claimed by a particular process, being available to, and controllable by, more than one process, said program configured to flood open valves from at least one starting point to determine a plurality of connections resulting from a valve switching state and storing said connections in a connection matrix, compare the connection matrix with a control matrix containing non-permitted connections to avoid switching states that result in use of a non-permitted connection, control the steps of a first process claiming or taking control of a group of valves from said plurality of valves to establish a flow path for executing the first process before said first process is executed, said program further configured to compare connections resulting from said flow path with said control matrix to determine whether said resulting connections include any non-permitted connections and, in an absence of non-permitted connections, said first process setting a switching state for said claimed group of valves so that other processes cannot change the switching state of said claimed valves while said valves are claimed by said first process, said claimed valves being non-available to other processes while said valves are claimed by said first process; polling of a non-available valve by a second process resulting in a request to the first process claiming said non-available valve for a release of said non-available valve; said first process itself making a decision on said request for the release of the non-available valve claimed by said first process, said non-available valve, if released by said first process, being controllable by said second process; and said program further configured to monitor the current and scheduled switching states of the valves to determine resulting connections and compare said resulting connections with said control matrix to avoid a non-permitted connection.
 26. The machine in accordance with claim 21, wherein the flow paths being controlled are in a cassette system coupled to the medical treatment machine. 